<?php /*a:1:{s:65:"D:\AppServ\www\1803010144\app\zhongkl_forum\view\answer\exam.html";i:1615910280;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一周测试</title>
    <link rel="stylesheet" href="/1803010144/public/static/zhongkl_forum/CSS/answer.css">
    <script src="/1803010144/public/static/zhongkl_forum/js/jquery-3.5.1.min.js"></script>
</head>

<body>
    <div class="container">
        <div class="nav">
            <ul>
                <a href="<?php echo url('Answer/index'); ?>" class="subNav">
                    <li>测试</li>
                </a>
                <a href="<?php echo url('Answer/score'); ?>" class="subNav">
                    <li>查看结果</li>
                </a>
                <a href="" class="subNav">
                    <li>当前身份</li>
                </a>
                <a href="<?php echo url('Answer/lssue'); ?>">
                    <li>发布试题</li>
                </a>
            </ul>
        </div>
        <div class="content">
            <form action="<?php echo url('Answer/doExam',['p_id'=>input('p_id')]); ?>" method="POST">
            <?php if(is_array($exam) || $exam instanceof \think\Collection || $exam instanceof \think\Paginator): $i = 0; $__LIST__ = $exam;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$exam): $mod = ($i % 2 );++$i;?>
                <div>
                    <h3><?php echo htmlentities($exam['q_name']); ?></h3>
                    <label for="">   
                        <?php if($exam['A']): ?>
                        <input type="radio" name='<?php echo htmlentities($exam['q_id']); ?>[]' value="A"><?php echo htmlentities($exam['A']); ?> <br>
                        <?php endif; if($exam['B']): ?>
                        <input type="radio" name='<?php echo htmlentities($exam['q_id']); ?>[]' value="B"><?php echo htmlentities($exam['B']); ?> <br>
                        <?php endif; if($exam['C']): ?>
                        <input type="radio" name='<?php echo htmlentities($exam['q_id']); ?>[]' value="C"><?php echo htmlentities($exam['C']); ?> <br>
                        <?php endif; if($exam['D']): ?>
                        <input type="radio" name='<?php echo htmlentities($exam['q_id']); ?>[]' value="D"><?php echo htmlentities($exam['D']); ?> <br>
                        <?php endif; if($exam['E']): ?>
                        <input type="radio" name='<?php echo htmlentities($exam['q_id']); ?>[]' value="E"><?php echo htmlentities($exam['E']); ?> <br>
                        <?php endif; if($exam['F']): ?>
                        <input type="radio" name='<?php echo htmlentities($exam['q_id']); ?>[]' value="F"><?php echo htmlentities($exam['F']); ?> <br>
                        <?php endif; ?>
                    </label>
                </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>
                <button>提交</button>
            </form>
            
        </div>
    </div>
</body>

</html>